home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 11
/
CU Amiga Magazine's Super CD-ROM 11 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-06].iso
/
s
/
ppagegenie.hlp
< prev
next >
Wrap
Text File
|
1993-01-28
|
1KB
|
56 lines
/*
@BPPGenieHelp.pprx@P
Copyright Gold Disk Inc., February, 1992
This genie reads the comment field in other genies and informs the user of the genies uses
*/
parse arg genie
if ~show(l, "rexxsupport.library") then
if ~addlib("rexxsupport.library", 0, -30) then
exit_msg("Please install the rexxsupport.library in your libs: directory")
if ~open(file, genie, "r") then exit_msg("Unable to open Genie.")
string = ''
do while ~eof(file)
line = readln(file)
if strip(line) = '' then iterate
if pos("/*", line) ~= 0 then
do
parse var line '/*' line
if strip(line) = '' then iterate
end
if pos("*/", line) ~= 0 then
do
parse var line line '*/'
if strip(line) ~= '' then
do
string = string||'0a'x||"@L"||line
end
leave
end
else
string = string||'0a'x||"@L"||line
end
call close(file)
if string = '' then exit_msg("No Help Available.")
fline = pos('@I', string) + 1
if fline > 1 then
do
fstate = '['||word(statef(genie), 2)||']'
string = insert(fstate" ", string, fline)
end
call ppm_Inform(1,substr(string,2),)
exit
exit_msg: procedure
do
arg message
if message ~= '' then call ppm_Inform(1,message,)
exit
end